package cn.ljy.uem.model;

import cn.ljy.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.Set;

/**
 * @description 教学任务课堂
 * @author 廖振豪
 * @date 2022-11-29
 */
@ApiModel(value="教学任务课堂")
@Data
@NoArgsConstructor
public class SchoolTeachingTaskLesson extends BaseModel {
    private String id;

    @NotNull(message = "教学任务id不能为空")
    private Integer taskId;//教学任务id

    @NotBlank(message = "上课标题不能为空")
    @Length(min = 2, max = 30, message = "账户名的长度必须在 {min} - {max} 之间")
    private String title;//上课的标题

    @NotNull(message = "上课日期不能为空")
    private Date teachingDate;//上课日期

//    业务层做判断
//    @NotNull(message = "教师id不能为空")
    private Long creator;//教师id

    private Date createTime;//创建时间

    private Date beginTime;//上课时间

    private Date endTime;//下课时间

    private Boolean afterClass;//下课状态，true表示下课


    //非数据库字段
    private SchoolTeachingTask schoolTeachingTask;

    private SchoolTeacher schoolTeacher;
}
